package Detector;


public class DetectorGameController {
	DetectorGame game;
	DetectorModel model;
	DetectorView view;
	
	public DetectorGameController(DetectorModel model, DetectorGame game){
		this.model=model;
		this.game=game;
		this.view=new DetectorView(model, this);
		//view.imagen();
	}
	
	public void moveUp(){
		model.setY(1);
	}
	public void moveDown(){
		model.setY(-1);
	}
	public void moveLeft(){
		model.setX(-1);
	}
	public void moveRight(){
		model.setX(1);
	}
	public void dig(){
		game.dig();
	}
	
}
